const get='get';
const post='post';
import Mock from 'mockjs'
import { prefix } from '@/api/api'

Mock.mock(prefix+'/getHead_msgssage',get,()=>{
    // alert('拦截请求')
    return {
        data:Mock.mock('@cword(10)'),
        code:200,
        msg:''
    };
})

Mock.mock(prefix+'/getnavigation',get,()=>{
    return {
        data:[
            {id:100,name:'水果蔬菜',url:'/fruitsvegetables',pagemark:'fruitsvegetables'  },
            {id:106,name:'乳肉制品',url:'/dairymeat',pagemark:'dairymeat'},
            {id:102,name:'生活用品',url:'/supplies',pagemark:'supplies'},
            {id:1004,name:'学习用品',url:'/officeStudy',pagemark:'officeStudy'},
            {id:1005,name:'杂货铺',url:'/sundry',pagemark:'sundry'},
            {id:100755,name:'门店地图',url:'/storemap',pagemark:'store-map'},
          ],
          code:200,
          msg:''
    }
})
Mock.mock(prefix+'/getneedLoginRouterList',get,(cc)=>{
    // console.log(cc)
    return {
        data:[
            '/customer',
            '/cart',
        ],
        code:200,
        msg:'',
    }
})
